﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.IO;
using NutriStat.Statistics;

namespace NutriStat
{
    public class NutriVisit : IVisit
    {
        #region Private Data
        private string modifiedBy = NutriStringConstants.Empty;
        private string notes = NutriStringConstants.Empty;
        private DateTime visitDate;
        private DateTime oldVisitDate;
        private DateTime modifiedDate;
        private DateTime creationDate;
        private bool edema;
        private bool recumbent;
        private string gender;
        private string age;
        private string heightMetric;
        private string heightCustomary;
        private string weightMetric;
        private string weightCustomary;
        private string weightOunces;
        private string armCircumferenceMetric;
        private string armCircumferenceCustomary;
        private string headCircumferenceMetric;
        private string headCircumferenceCustomary;
        private string subscapularSkinFoldMetric;
        private string subscapularSkinFoldCustomary;
        private string tricepsSkinFoldMetric;
        private string tricepsSkinFoldCustomary;

        private string bodyMassIndex;
        private string muacAgeZ;
        private string muacHeightZ;
        
        private string cdcHAC;
        private string cdcWHC;
        private string cdcWAC;
        private string cdcHAZ;
        private string cdcWHZ;
        private string cdcWAZ;
        private string cdcBMIC;
        private string cdcBMIZ;
        private string cdcHCircumC;
        private string cdcHCircumZ;
        private string cdcFlag;

        private string cdcHAFlag;
        private string cdcWAFlag;
        private string cdcWHFlag;
        private string cdcBMIFlag;

        private string who1978HAC;
        private string who1978WHC;
        private string who1978WAC;
        private string who1978HAZ;
        private string who1978WHZ;
        private string who1978WAZ;
        private string who1978HAPM;
        private string who1978WHPM;
        private string who1978WAPM;
        private string who1978Flag;

        private string who2006HAC;
        private string who2006WHC;
        private string who2006WAC;
        private string who2006HAZ;
        private string who2006WHZ;
        private string who2006WAZ;
        private string who2006SSFC;
        private string who2006TSFC;
        private string who2006HCircumC;
        private string who2006BMIC;
        private string who2006MUACC;
        private string who2006SSFZ;
        private string who2006TSFZ;
        private string who2006HCircumZ;
        private string who2006BMIZ;
        private string who2006MUACZ;
        private string who2006HAFlag;
        private string who2006WAFlag;
        private string who2006WHFlag;
        private string who2006BMIFlag;
        private string who2006HeadFlag;
        private string who2006SSFFlag;
        private string who2006TSFFlag;
        private string who2006MUACFlag;
        private int who2006MMSitting;
        private int who2006MMStandingAssisted;
        private int who2006MMCrawling;
        private int who2006MMWalkingAssisted;
        private int who2006MMStanding;
        private int who2006MMWalking;

        private string who2007HAC;
        private string who2007HAZ;
        private string who2007WAC;
        private string who2007WAZ;
        private string who2007BMIC;
        private string who2007BMIZ;
        private string who2007HAFlag;
        private string who2007WAFlag;
        private string who2007BMIFlag;
        #endregion

        #region Constructors
        public NutriVisit(string sex)
        {
            this.Age = NutriStringConstants.Empty;
            this.ArmCircumferenceCustomary = NutriStringConstants.Empty;
            this.ArmCircumferenceMetric = NutriStringConstants.Empty;
            this.BMI = NutriStringConstants.Empty;
            this.CDCBMIC = NutriStringConstants.Empty;
            this.CDCBMIZ = NutriStringConstants.Empty;
            this.CDCFlag = NutriStringConstants.Empty;
            this.CDCHAC = NutriStringConstants.Empty;
            this.CDCHAZ = NutriStringConstants.Empty;
            this.CDCHCircumC = NutriStringConstants.Empty;
            this.CDCHCircumZ = NutriStringConstants.Empty;
            this.CDCWAC = NutriStringConstants.Empty;
            this.CDCWAZ = NutriStringConstants.Empty;
            this.CDCWHC = NutriStringConstants.Empty;
            this.CDCWHZ = NutriStringConstants.Empty;
            this.CDCBMIFlag = NutriStringConstants.Empty;
            this.CDCHAFlag = NutriStringConstants.Empty;
            this.CDCWAFlag = NutriStringConstants.Empty;
            this.CDCWHFlag = NutriStringConstants.Empty;
            this.CreationDate = DateTime.Now;
            this.Edema = false;
            this.HeadCircumferenceCustomary = NutriStringConstants.Empty;
            this.HeadCircumferenceMetric = NutriStringConstants.Empty;
            this.HeightCustomary = NutriStringConstants.Empty;
            this.HeightMetric = NutriStringConstants.Empty;
            this.ModifiedBy = NutriStringConstants.Empty;
            this.ModifiedDate = DateTime.Now;
            this.MUACAgeZ = NutriStringConstants.Empty;
            this.MUACHeightZ = NutriStringConstants.Empty;
            this.Notes = NutriStringConstants.Empty;
            this.Recumbent = false;
            this.SubscapularSkinFoldCustomary = NutriStringConstants.Empty;
            this.SubscapularSkinFoldMetric = NutriStringConstants.Empty;
            this.TricepsSkinFoldCustomary = NutriStringConstants.Empty;
            this.TricepsSkinFoldMetric = NutriStringConstants.Empty;
            this.WeightCustomary = NutriStringConstants.Empty;
            this.WeightMetric = NutriStringConstants.Empty;
            this.WHO1978Flag = NutriStringConstants.Empty;
            this.WHO1978HAC = NutriStringConstants.Empty;
            this.WHO1978HAPM = NutriStringConstants.Empty;
            this.WHO1978HAZ = NutriStringConstants.Empty;
            this.WHO1978WAC = NutriStringConstants.Empty;
            this.WHO1978WAPM = NutriStringConstants.Empty;
            this.WHO1978WAZ = NutriStringConstants.Empty;
            this.WHO1978WHC = NutriStringConstants.Empty;
            this.WHO1978WHPM = NutriStringConstants.Empty;
            this.WHO1978WHZ = NutriStringConstants.Empty;
            this.WHO2006BMIC = NutriStringConstants.Empty;
            this.WHO2006BMIFlag = NutriStringConstants.Empty;
            this.WHO2006BMIZ = NutriStringConstants.Empty;
            this.WHO2006HAC = NutriStringConstants.Empty;
            this.WHO2006HAFlag = NutriStringConstants.Empty;
            this.WHO2006HAZ = NutriStringConstants.Empty;
            this.WHO2006HCircumC = NutriStringConstants.Empty;
            this.WHO2006HCircumZ = NutriStringConstants.Empty;
            this.WHO2006HeadFlag = NutriStringConstants.Empty;
            this.WHO2006MUACC = NutriStringConstants.Empty;
            this.WHO2006MUACFlag = NutriStringConstants.Empty;
            this.WHO2006MUACZ = NutriStringConstants.Empty;
            this.WHO2006SSFC = NutriStringConstants.Empty;
            this.WHO2006SSFFlag = NutriStringConstants.Empty;
            this.WHO2006SSFZ = NutriStringConstants.Empty;
            this.WHO2006TSFC = NutriStringConstants.Empty;
            this.WHO2006TSFFlag = NutriStringConstants.Empty;
            this.WHO2006TSFZ = NutriStringConstants.Empty;
            this.WHO2006WAC = NutriStringConstants.Empty;
            this.WHO2006WAFlag = NutriStringConstants.Empty;
            this.WHO2006WAZ = NutriStringConstants.Empty;
            this.WHO2006WHC = NutriStringConstants.Empty;
            this.WHO2006WHFlag = NutriStringConstants.Empty;
            this.WHO2006WHZ = NutriStringConstants.Empty;
            this.WHO2007HAC = NutriStringConstants.Empty;
            this.WHO2007HAZ = NutriStringConstants.Empty;
            this.WHO2007WAC = NutriStringConstants.Empty;
            this.WHO2007WAZ = NutriStringConstants.Empty;
            this.WHO2007BMIC = NutriStringConstants.Empty;
            this.WHO2007BMIZ = NutriStringConstants.Empty;
            this.WHO2007HAFlag = NutriStringConstants.Empty;
            this.WHO2007WAFlag = NutriStringConstants.Empty;
            this.WHO2007BMIFlag = NutriStringConstants.Empty;
            this.Gender = sex;
        }
        #endregion

        #region Public Methods
        public bool GenerateStatistics(int stats)
        {            
            CDC2000GrowthReference CDC2000 = new CDC2000GrowthReference();
            WHO2006GrowthReference WHO2006 = new WHO2006GrowthReference();
            WHO2007GrowthReference WHO2007 = new WHO2007GrowthReference();
            WHO1978GrowthReference WHO1978 = new WHO1978GrowthReference();

            double z = -999;
            double p = -999;
            //double m = -999;
            double flag = -999;           

            short sex = 1;
            if (Gender.Equals("F"))
                sex = 2;

            double dAge = -999;

            try
            {
                dAge = Convert.ToDouble(Age);
            }
            catch
            {
                dAge = -999;
            }           

            // Do Body Mass Index calculations
            if (stats != 5 && stats != 6)
            {       
                //MessageBox.Show("START: " + DateTime.Now.ToString());                
                // CDC stats
                try
                {
                    CDCBMIZ = CDC2000.GetZForBMI(ref z, ref p, ref flag, Convert.ToDouble(BMI), dAge, sex);
                    CDCBMIC = p.ToString();
                    CDCBMIFlag = flag.ToString();
                }
                catch
                {
                    CDCBMIZ = NutriStringConstants.Empty;
                    CDCBMIC = NutriStringConstants.Empty;
                    CDCBMIFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }
                // WHO 2006
                try
                {
                    WHO2006BMIZ = WHO2006.GetZForBMI(ref z, ref p, ref flag, Convert.ToDouble(BMI), dAge, sex);
                    WHO2006BMIC = p.ToString();
                    WHO2006BMIFlag = flag.ToString();                    
                }
                catch
                {
                    WHO2006BMIZ = NutriStringConstants.Empty;
                    WHO2006BMIC = NutriStringConstants.Empty;
                    WHO2006BMIFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }

                // WHO 2007
                try
                {
                    WHO2007BMIZ = WHO2007.GetZForBMI(ref z, ref p, ref flag, Convert.ToDouble(BMI), dAge, sex);
                    WHO2007BMIC = p.ToString();
                    WHO2007BMIFlag = flag.ToString();
                }
                catch
                {
                    WHO2007BMIZ = NutriStringConstants.Empty;
                    WHO2007BMIC = NutriStringConstants.Empty;
                    WHO2007BMIFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }
            }

            // Do Height-for-Age calculations
            if (stats != 3 && stats != 5 && stats != 6 && HeightMetric != NutriStringConstants.Undefined)
            {
                // CDC 2000
                try
                {
                    CDCHAZ = CDC2000.GetZForHeightAge(ref z, ref p, ref flag, Convert.ToDouble(HeightMetric), dAge, sex, Recumbent);
                    CDCHAC = p.ToString();
                    CDCHAFlag = flag.ToString();
                }
                catch
                {
                    CDCHAZ = NutriStringConstants.Empty;
                    CDCHAC = NutriStringConstants.Empty;
                    CDCHAFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }

                // WHO 2006
                try
                {
                    WHO2006HAZ = WHO2006.GetZForHeightAge(ref z, ref p, ref flag, Convert.ToDouble(HeightMetric), dAge, sex, Recumbent);
                    WHO2006HAC = p.ToString();
                    WHO2006HAFlag = flag.ToString();                    
                }
                catch
                {
                    WHO2006HAZ = NutriStringConstants.Empty;
                    WHO2006HAC = NutriStringConstants.Empty;
                    WHO2006HAFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }

                // WHO 2007
                try
                {
                    WHO2007HAZ = WHO2007.GetZForHeightAge(ref z, ref p, ref flag, Convert.ToDouble(HeightMetric), dAge, sex, Recumbent);
                    WHO2007HAC = p.ToString();
                    WHO2007HAFlag = flag.ToString();
                }
                catch
                {
                    WHO2007HAZ = NutriStringConstants.Empty;
                    WHO2007HAC = NutriStringConstants.Empty;
                    WHO2007HAFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }

                // WHO 1978 / NCHS 1978
                try
                {
                    WHO1978HAZ = WHO1978.GetZForHeightAge(ref z, ref p, ref flag, Convert.ToDouble(HeightMetric), dAge, sex, Recumbent);
                    WHO1978HAC = p.ToString();                    
                }
                catch
                {
                    WHO1978HAZ = NutriStringConstants.Empty;
                    WHO1978HAC = NutriStringConstants.Empty;                    
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }     
            }

            // Do Weight-for-Age calculations
            if (stats != 4 && stats != 5 && stats != 6 && WeightMetric != NutriStringConstants.Undefined)
            {
                // CDC 2000
                try
                {
                    CDCWAZ = CDC2000.GetZForWeightAge(ref z, ref p, ref flag, Convert.ToDouble(WeightMetric), dAge, sex);
                    CDCWAC = p.ToString();
                    CDCWAFlag = flag.ToString();
                }
                catch
                {
                    CDCWAZ = NutriStringConstants.Empty;
                    CDCWAC = NutriStringConstants.Empty;
                    CDCWAFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }

                // WHO 2006
                try
                {
                    WHO2006WAZ = WHO2006.GetZForWeightAge(ref z, ref p, ref flag, Convert.ToDouble(WeightMetric), dAge, sex);
                    WHO2006WAC = p.ToString();
                    WHO2006WAFlag = flag.ToString();
                }
                catch
                {
                    WHO2006WAZ = NutriStringConstants.Empty;
                    WHO2006WAC = NutriStringConstants.Empty;
                    WHO2006WAFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }

                // WHO 2007
                try
                {
                    WHO2007WAZ = WHO2007.GetZForWeightAge(ref z, ref p, ref flag, Convert.ToDouble(WeightMetric), dAge, sex);
                    WHO2007WAC = p.ToString();
                    WHO2007WAFlag = flag.ToString();
                }
                catch
                {
                    WHO2007WAZ = NutriStringConstants.Empty;
                    WHO2007WAC = NutriStringConstants.Empty;
                    WHO2007WAFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }

                // WHO 1978 / NCHS 1978
                try
                {
                    WHO1978WAZ = WHO1978.GetZForWeightAge(ref z, ref p, ref flag, Convert.ToDouble(WeightMetric), dAge, sex);
                    WHO1978WAC = p.ToString();
                }
                catch
                {
                    WHO1978WAZ = NutriStringConstants.Empty;
                    WHO1978WAC = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }
            }

            // Do Weight-for-Height calculations
            if (stats != 1 && stats != 5 && stats != 6 && WeightMetric != NutriStringConstants.Undefined && HeightMetric != NutriStringConstants.Undefined)
            {
                // CDC 2000
                try
                {
                    CDCWHZ = CDC2000.GetZForWeightHeight(ref z, ref p, ref flag, Convert.ToDouble(WeightMetric), dAge, Convert.ToDouble(HeightMetric), sex, Recumbent);
                    CDCWHC = p.ToString();
                    CDCWHFlag = flag.ToString();
                }
                catch
                {
                    CDCWHZ = NutriStringConstants.Empty;
                    CDCWHC = NutriStringConstants.Empty;
                    CDCWHFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }

                // WHO 2006
                try
                {
                    WHO2006WHZ = WHO2006.GetZForWeightHeight(ref z, ref p, ref flag, Convert.ToDouble(WeightMetric), dAge, Convert.ToDouble(HeightMetric), sex, Recumbent);
                    WHO2006WHC = p.ToString();
                    WHO2006WHFlag = flag.ToString();
                }
                catch
                {
                    WHO2006WHZ = NutriStringConstants.Empty;
                    WHO2006WHC = NutriStringConstants.Empty;
                    WHO2006WHFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }

                // WHO 1978 / NCHS 1978
                try
                {                    
                    WHO1978WHZ = WHO1978.GetZForWeightHeight(ref z, ref p, ref flag, Convert.ToDouble(WeightMetric), dAge, Convert.ToDouble(HeightMetric), sex, Recumbent);                    
                    WHO1978WHC = p.ToString();
                }
                catch
                {
                    WHO1978WHZ = NutriStringConstants.Empty;
                    WHO1978WHC = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }
            }

            // Do Head circumference calculations
            if (stats != 3 && stats != 4 && stats != 6 && HeadCircumferenceMetric != NutriStringConstants.Undefined)
            {
                // CDC 2000
                try
                {
                    CDCHCircumZ = CDC2000.GetZForHead(ref z, ref p, ref flag, Convert.ToDouble(HeadCircumferenceMetric), dAge, sex);
                    CDCHCircumC = p.ToString();
                }
                catch
                {
                    CDCHCircumZ = NutriStringConstants.Empty;
                    CDCHCircumC = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }

                // WHO 2006
                try
                {
                    WHO2006HCircumZ = WHO2006.GetZForHead(ref z, ref p, ref flag, Convert.ToDouble(HeadCircumferenceMetric), dAge, sex);
                    WHO2006HCircumC = p.ToString();
                    WHO2006HeadFlag = flag.ToString();
                }
                catch
                {
                    WHO2006HCircumZ = NutriStringConstants.Empty;
                    WHO2006HCircumC = NutriStringConstants.Empty;
                    WHO2006HeadFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }
            }

            // Do MUAC calculations
            if ((stats == 6 || stats == 0 || stats == 1) && ArmCircumferenceMetric != NutriStringConstants.Undefined)
            {
                // CDC 2000
                // none - MUAC not possible with CDC data set

                // WHO 2006
                try
                {
                    WHO2006MUACZ = WHO2006.GetZForMUAC(ref z, ref p, ref flag, Convert.ToDouble(ArmCircumferenceMetric), dAge, sex);
                    WHO2006MUACC = p.ToString();
                    WHO2006MUACFlag = flag.ToString();
                }
                catch
                {
                    WHO2006MUACZ = NutriStringConstants.Empty;
                    WHO2006MUACC = NutriStringConstants.Empty;
                    WHO2006MUACFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }

                // Legacy MUAC, WHO 1997
                try
                {
                    MUACAgeZ = AnthStat.NutriDataCalc.GetZScoreAgeMUAC(Convert.ToDouble(ArmCircumferenceMetric), dAge, sex).ToString();
                    MUACHeightZ = AnthStat.NutriDataCalc.GetZScoreHeightMUAC(Convert.ToDouble(ArmCircumferenceMetric), Convert.ToDouble(HeightMetric), sex).ToString();
                }
                catch
                {
                    MUACAgeZ = NutriStringConstants.Empty;
                    MUACHeightZ = NutriStringConstants.Empty;
                }
            }


            // Do subscapular skin fold calculations
            if ((stats == 7 || stats == 0 || stats == 1) && SubscapularSkinFoldMetric != NutriStringConstants.Undefined)
            {
                // CDC 2000
                // none - SSF not possible with CDC data set

                // WHO 2006
                try
                {
                    WHO2006SSFZ = WHO2006.GetZForSSF(ref z, ref p, ref flag, Convert.ToDouble(SubscapularSkinFoldMetric), dAge, sex);
                    WHO2006SSFC = p.ToString();
                    WHO2006SSFFlag = flag.ToString();
                }
                catch
                {
                    WHO2006SSFZ = NutriStringConstants.Empty;
                    WHO2006SSFC = NutriStringConstants.Empty;
                    WHO2006SSFFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }                
            }

            // Do triceps skin fold calculations
            if ((stats == 8 || stats == 0 || stats == 1) && TricepsSkinFoldMetric != NutriStringConstants.Undefined)
            {
                // CDC 2000
                // none - TSF not possible with CDC data set

                // WHO 2006
                try
                {
                    WHO2006TSFZ = WHO2006.GetZForTSF(ref z, ref p, ref flag, Convert.ToDouble(TricepsSkinFoldMetric), dAge, sex);
                    WHO2006TSFC = p.ToString();
                    WHO2006TSFFlag = flag.ToString();
                }
                catch
                {
                    WHO2006TSFZ = NutriStringConstants.Empty;
                    WHO2006TSFC = NutriStringConstants.Empty;
                    WHO2006TSFFlag = NutriStringConstants.Empty;
                }
                finally
                {
                    p = -999;
                    flag = -999;
                }
            }

            // WHO/NCHS 1978
            //  public static void WHO1978Results(double age, string gender, double height, double weight,
            //ref double HAC, ref double WHC, ref double WAC, ref double HAZ, ref double WHZ,
            //ref double WAZ, ref double HAPM, ref double WHPM, ref double WAPM, ref int flag)
            /*
            int iflag = -999;
            try
            {
                WHO1978GrowthReference.CalcResults(dAge, Gender, Convert.ToDouble(HeightMetric), Convert.ToDouble(WeightMetric),
                    ref who1978HAC, ref who1978WHC,
                    ref who1978WAC, ref who1978HAZ, ref who1978WHZ, ref who1978WAZ, ref who1978HAPM,
                    ref who1978WHPM, ref who1978WAPM, ref iflag);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
            */
            return false;
        }
        #endregion

        #region Public Properties
        public DateTime VisitDate 
        {
            get
            {
                return visitDate;
            }
            set
            {
                visitDate = value;
            }
        }

        public DateTime OldVisitDate
        {
            get
            {
                return oldVisitDate;
            }
            set
            {
                oldVisitDate = value;
            }
        }

        public DateTime CreationDate
        {
            get
            {
                return creationDate;
            }
            set
            {
                creationDate = value;
            }
        }
        public DateTime ModifiedDate
        {
            get
            {
                return modifiedDate;
            }
            set
            {
                modifiedDate = value;
            }
        }

        public string ModifiedBy
        {
            get
            {
                return modifiedBy;
            }
            set
            {
                modifiedBy = value;
            }
        }

        public string Age
        {
            get
            {
                return age;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != null)
                    age = value;
                else
                    age = NutriStringConstants.Empty;
            }
        }

        public string HeightMetric
        {
            get
            {
                return heightMetric;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    heightMetric = value;
                else
                    heightMetric = NutriStringConstants.Empty;
            }
        }

        public string HeightCustomary
        {
            get
            {
                return heightCustomary;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    heightCustomary = value;
                else
                    heightCustomary = NutriStringConstants.Empty;
            }
        }

        public string WeightMetric
        {
            get
            {
                return weightMetric;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    weightMetric = value;
                else
                    weightMetric = NutriStringConstants.Empty;
            }
        }

        public string WeightCustomary
        {
            get
            {
                return weightCustomary;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    weightCustomary = value;
                else
                    weightCustomary = NutriStringConstants.Empty;
            }
        }

        public string WeightOunces
        {
            get
            {
                return weightOunces;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    weightOunces = value;
                else
                    weightOunces = NutriStringConstants.Empty;
            }
        }

        public bool Edema
        {
            get
            {
                return edema;
            }
            set
            {
                edema = value;
            }
        }

        public bool Recumbent
        {
            get
            {
                return recumbent;
            }
            set
            {
                recumbent = value;
            }
        }

        public string Gender
        {
            get
            {
                return gender;
            }
            set
            {
                if (value.Equals("M"))
                    gender = value;
                else
                    gender = "F";
            }
        }

        public string ArmCircumferenceMetric
        {
            get
            {
                return armCircumferenceMetric;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    armCircumferenceMetric = value;
                else
                    armCircumferenceMetric = NutriStringConstants.Empty;
            }
        }

        public string ArmCircumferenceCustomary
        {
            get
            {
                return armCircumferenceCustomary;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    armCircumferenceCustomary = value;
                else
                    armCircumferenceCustomary = NutriStringConstants.Empty;
            }
        }

        public string HeadCircumferenceMetric
        {
            get
            {
                return headCircumferenceMetric;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    headCircumferenceMetric = value;
                else
                    headCircumferenceMetric = NutriStringConstants.Empty;
            }
        }

        public string HeadCircumferenceCustomary
        {
            get
            {
                return headCircumferenceCustomary;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    headCircumferenceCustomary = value;
                else
                    headCircumferenceCustomary = NutriStringConstants.Empty;
            }
        }

        public string TricepsSkinFoldMetric
        {
            get
            {
                return tricepsSkinFoldMetric;
            }
            set
            {
                tricepsSkinFoldMetric = value;
            }
        }

        public string TricepsSkinFoldCustomary
        {
            get
            {
                return tricepsSkinFoldCustomary;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    tricepsSkinFoldCustomary = value;
                else
                    tricepsSkinFoldCustomary = NutriStringConstants.Empty;
            }
        }

        public string SubscapularSkinFoldMetric
        {
            get
            {
                return subscapularSkinFoldMetric;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    subscapularSkinFoldMetric = value;
                else
                    subscapularSkinFoldMetric = NutriStringConstants.Empty;
            }
        }

        public string SubscapularSkinFoldCustomary
        {
            get
            {
                return subscapularSkinFoldCustomary;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    subscapularSkinFoldCustomary = value;
                else
                    subscapularSkinFoldCustomary = NutriStringConstants.Empty;
            }
        }

        public string Notes
        {
            get
            {
                return notes;
            }
            set
            {
                notes = value;
            }
        }

        public string BMI
        {
            get
            {
                return bodyMassIndex;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != NutriStringConstants.Empty && value != "-999")
                    bodyMassIndex = value;
                else
                    bodyMassIndex = NutriStringConstants.Undefined;
            }
        }

        public string MUACAgeZ
        {
            get
            {
                return muacAgeZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    muacAgeZ = value;
                else
                    muacAgeZ = NutriStringConstants.Empty;
            }
        }
        public string MUACHeightZ
        {
            get
            {
                return muacHeightZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    muacHeightZ = value;
                else
                    muacHeightZ = NutriStringConstants.Empty;
            }
        }

        public string CDCHAC
        {
            get
            {
                return cdcHAC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcHAC = value;
                else
                    cdcHAC = NutriStringConstants.Undefined;
            }
        }

        public string CDCWHC
        {
            get
            {
                return cdcWHC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcWHC = value;
                else
                    cdcWHC = NutriStringConstants.Undefined;
            }
        }

        public string CDCWAC
        {
            get
            {
                return cdcWAC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcWAC = value;
                else
                    cdcWAC = NutriStringConstants.Undefined;
            }
        }

        public string CDCHAZ
        {
            get
            {
                return cdcHAZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcHAZ = value;
                else
                    cdcHAZ = NutriStringConstants.Undefined;
            }
        }

        public string CDCWHZ
        {
            get
            {
                return cdcWHZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcWHZ = value;
                else
                    cdcWHZ = NutriStringConstants.Undefined;
            }
        }

        public string CDCWAZ
        {
            get
            {
                return cdcWAZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcWAZ = value;
                else
                    cdcWAZ = NutriStringConstants.Undefined;
            }
        }

        public string CDCBMIC
        {
            get
            {
                return cdcBMIC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcBMIC = value;
                else
                    cdcBMIC = NutriStringConstants.Undefined;
            }
        }

        public string CDCBMIZ
        {
            get
            {
                return cdcBMIZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcBMIZ = value;
                else
                    cdcBMIZ = NutriStringConstants.Undefined;
            }
        }

        public string CDCHCircumC
        {
            get
            {
                return cdcHCircumC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcHCircumC = value;
                else
                    cdcHCircumC = NutriStringConstants.Undefined;
            }
        }

        public string CDCHCircumZ
        {
            get
            {
                return cdcHCircumZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcHCircumZ = value;
                else
                    cdcHCircumZ = NutriStringConstants.Undefined;
            }
        }

        public double CDCHACd 
        {
            get
            {
                try
                {
                    return Convert.ToDouble(CDCHAC);
                }
                catch
                {
                    return Double.NaN;
                }
            }
        }
        public double CDCWHCd
        {
            get
            {
                try
                {
                    return Convert.ToDouble(CDCWHC);
                }
                catch
                {
                    return Double.NaN;
                }
            }
        }
        public double CDCWACd
        {
            get
            {
                try
                {
                    return Convert.ToDouble(CDCWAC);
                }
                catch
                {
                    return Double.NaN;
                }
            }
        }
        public double CDCHAZd
        {
            get
            {
                try
                {
                    return Convert.ToDouble(CDCHAZ);
                }
                catch
                {
                    return Double.NaN;
                }
            }
        }
        public double CDCWHZd
        {
            get
            {
                try
                {
                    return Convert.ToDouble(CDCWHZ);
                }
                catch
                {
                    return Double.NaN;
                }
            }
        }
        public double CDCWAZd
        {
            get
            {
                try
                {
                    return Convert.ToDouble(CDCWAZ);
                }
                catch
                {
                    return Double.NaN;
                }
            }
        }
        public double CDCBMICd
        {
            get
            {
                try
                {
                    return Convert.ToDouble(CDCBMIC);
                }
                catch
                {
                    return Double.NaN;
                }
            }
        }
        public double CDCBMIZd
        {
            get
            {
                try
                {
                    return Convert.ToDouble(CDCBMIZ);
                }
                catch
                {
                    return Double.NaN;
                }
            }
        }
        public double CDCHCircumCd
        {
            get
            {
                try
                {
                    return Convert.ToDouble(CDCHCircumC);
                }
                catch
                {
                    return Double.NaN;
                }
            }
        }
        public double CDCHCircumZd
        {
            get
            {
                try
                {
                    return Convert.ToDouble(CDCHCircumZ);
                }
                catch
                {
                    return Double.NaN;
                }
            }
        }

        public string CDCFlag
        {
            get
            {
                return cdcFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcFlag = value;
                else
                    cdcFlag = NutriStringConstants.Empty;
            }
        }
        
        public string CDCHAFlag
        {
            get
            {
                return cdcHAFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcHAFlag = value;
                else
                    cdcHAFlag = NutriStringConstants.Empty;
            }
        }

        public string CDCWAFlag
        {
            get
            {
                return cdcWAFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcWAFlag = value;
                else
                    cdcWAFlag = NutriStringConstants.Empty;
            }
        }

        public string CDCWHFlag
        {
            get
            {
                return cdcWHFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcWHFlag = value;
                else
                    cdcWHFlag = NutriStringConstants.Empty;
            }
        }

        public string CDCBMIFlag
        {
            get
            {
                return cdcBMIFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    cdcBMIFlag = value;
                else
                    cdcBMIFlag = NutriStringConstants.Empty;
            }
        }

        public string WHO1978HAC
        {
            get
            {
                return who1978HAC;
            }
            set
            {
                if (value != NutriStringConstants.Empty)
                    who1978HAC = value;
                else
                    who1978HAC = NutriStringConstants.Undefined;
            }
        }

        public string WHO1978WHC
        {
            get
            {
                return who1978WHC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who1978WHC = value;
                else
                    who1978WHC = NutriStringConstants.Undefined;
            }
        }

        public string WHO1978WAC
        {
            get
            {
                return who1978WAC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who1978WAC = value;
                else
                    who1978WAC = NutriStringConstants.Undefined;
            }
        }

        public string WHO1978HAZ
        {
            get
            {
                return who1978HAZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who1978HAZ = value;
                else
                    who1978HAZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO1978WHZ
        {
            get
            {
                return who1978WHZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who1978WHZ = value;
                else
                    who1978WHZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO1978WAZ
        {
            get
            {
                return who1978WAZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who1978WAZ = value;
                else
                    who1978WAZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO1978HAPM
        {
            get
            {
                return who1978HAPM;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who1978HAPM = value;
                else
                    who1978HAPM = NutriStringConstants.Undefined;
            }
        }

        public string WHO1978WHPM
        {
            get
            {
                return who1978WHPM;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who1978WHPM = value;
                else
                    who1978WHPM = NutriStringConstants.Undefined;
            }
        }

        public string WHO1978WAPM
        {
            get
            {
                return who1978WAPM;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who1978WAPM = value;
                else
                    who1978WAPM = NutriStringConstants.Undefined;
            }
        }

        public string WHO1978Flag
        {
            get
            {
                return who1978Flag;
            }
            set
            {
                who1978Flag = value;
            }
        }


        public string WHO2006HAC
        {
            get
            {
                return who2006HAC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006HAC = value;
                else
                    who2006HAC = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006WHC
        {
            get
            {
                return who2006WHC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006WHC = value;
                else
                    who2006WHC = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006WAC
        {
            get
            {
                return who2006WAC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006WAC = value;
                else
                    who2006WAC = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006HAZ
        {
            get
            {
                return who2006HAZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006HAZ = value;
                else
                    who2006HAZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006WHZ
        {
            get
            {
                return who2006WHZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006WHZ = value;
                else
                    who2006WHZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006WAZ
        {
            get
            {
                return who2006WAZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006WAZ = value;
                else
                    who2006WAZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006SSFC
        {
            get
            {
                return who2006SSFC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006SSFC = value;
                else
                    who2006SSFC = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006TSFC
        {
            get
            {
                return who2006TSFC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006TSFC = value;
                else
                    who2006TSFC = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006HCircumC
        {
            get
            {
                return who2006HCircumC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006HCircumC = value;
                else
                    who2006HCircumC = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006BMIC
        {
            get
            {
                return who2006BMIC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006BMIC = value;
                else
                    who2006BMIC = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006MUACC
        {
            get
            {
                return who2006MUACC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006MUACC = value;
                else
                    who2006MUACC = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006SSFZ
        {
            get
            {
                return who2006SSFZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006SSFZ = value;
                else
                    who2006SSFZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006TSFZ
        {
            get
            {
                return who2006TSFZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006TSFZ = value;
                else
                    who2006TSFZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006HCircumZ
        {
            get
            {
                return who2006HCircumZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006HCircumZ = value;
                else
                    who2006HCircumZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006BMIZ
        {
            get
            {
                return who2006BMIZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006BMIZ = value;
                else
                    who2006BMIZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006MUACZ
        {
            get
            {
                return who2006MUACZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && value != "-999")
                    who2006MUACZ = value;
                else
                    who2006MUACZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO2006HAFlag
        {
            get
            {
                return who2006HAFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2006HAFlag = value;
                else
                    who2006HAFlag = NutriStringConstants.Empty;
            }
        }

        public string WHO2006WAFlag
        {
            get
            {
                return who2006WAFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2006WAFlag = value;
                else
                    who2006WAFlag = NutriStringConstants.Empty;
            }
        }

        public string WHO2006WHFlag
        {
            get
            {
                return who2006WHFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2006WHFlag = value;
                else
                    who2006WHFlag = NutriStringConstants.Empty;
            }
        }

        public string WHO2006BMIFlag
        {
            get
            {
                return who2006BMIFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2006BMIFlag = value;
                else
                    who2006BMIFlag = NutriStringConstants.Empty;
            }
        }

        public string WHO2006HeadFlag
        {
            get
            {
                return who2006HeadFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2006HeadFlag = value;
                else
                    who2006HeadFlag = NutriStringConstants.Empty;
            }
        }

        public string WHO2006SSFFlag
        {
            get
            {
                return who2006SSFFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2006SSFFlag = value;
                else
                    who2006SSFFlag = NutriStringConstants.Empty;
            }
        }

        public string WHO2006TSFFlag
        {
            get
            {
                return who2006TSFFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2006TSFFlag = value;
                else
                    who2006TSFFlag = NutriStringConstants.Empty;
            }
        }

        public string WHO2006MUACFlag
        {
            get
            {
                return who2006MUACFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2006MUACFlag = value;
                else
                    who2006MUACFlag = NutriStringConstants.Empty;
            }
        }

        public int WHO2006MMSitting
        {
            get
            {
                return who2006MMSitting;
            }
            set
            {
                who2006MMSitting = value;                
            }
        }

        public int WHO2006MMStandingAssisted
        {
            get
            {
                return who2006MMStandingAssisted;
            }
            set
            {
                who2006MMStandingAssisted = value;
            }
        }

        public int WHO2006MMCrawling
        {
            get
            {
                return who2006MMCrawling;
            }
            set
            {
                who2006MMCrawling = value;
            }
        }

        public int WHO2006MMWalkingAssisted
        {
            get
            {
                return who2006MMWalkingAssisted;
            }
            set
            {
                who2006MMWalkingAssisted = value;
            }
        }

        public int WHO2006MMStanding
        {
            get
            {
                return who2006MMStanding;
            }
            set
            {
                who2006MMStanding = value;
            }
        }

        public int WHO2006MMWalking
        {
            get
            {
                return who2006MMWalking;
            }
            set
            {
                who2006MMWalking = value;
            }
        }

        public string WHO2007HAC
        {
            get
            {
                return who2007HAC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2007HAC = value;
                else
                    who2007HAC = NutriStringConstants.Undefined;
            }
        }

        public string WHO2007HAZ
        {
            get
            {
                return who2007HAZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2007HAZ = value;
                else
                    who2007HAZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO2007WAC
        {
            get
            {
                return who2007WAC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2007WAC = value;
                else
                    who2007WAC = NutriStringConstants.Undefined;
            }
        }

        public string WHO2007WAZ
        {
            get
            {
                return who2007WAZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2007WAZ = value;
                else
                    who2007WAZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO2007BMIC
        {
            get
            {
                return who2007BMIC;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2007BMIC = value;
                else
                    who2007BMIC = NutriStringConstants.Undefined;
            }
        }

        public string WHO2007BMIZ
        {
            get
            {
                return who2007BMIZ;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2007BMIZ = value;
                else
                    who2007BMIZ = NutriStringConstants.Undefined;
            }
        }

        public string WHO2007HAFlag
        {
            get
            {
                return who2007HAFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2007HAFlag = value;
                else
                    who2007HAFlag = NutriStringConstants.Empty;
            }
        }

        public string WHO2007WAFlag
        {
            get
            {
                return who2007WAFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2007WAFlag = value;
                else
                    who2007WAFlag = NutriStringConstants.Empty;
            }
        }

        public string WHO2007BMIFlag
        {
            get
            {
                return who2007BMIFlag;
            }
            set
            {
                if (value != NutriStringConstants.Empty && value != NutriStringConstants.Null && !value.StartsWith("-999"))
                    who2007BMIFlag = value;
                else
                    who2007BMIFlag = NutriStringConstants.Empty;
            }
        }

        #endregion

        #region Protected Methods
        #endregion

        #region Protected Properties
        #endregion

        #region Private Methods
        #endregion

        #region Private Properties
        #endregion

    }
}
